package com.kt.dao;

import com.kt.po.Teacher;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

import java.util.List;

@Mapper
public interface TeacherMapper {

    @Delete("DELETE FROM `teacher` WHERE id = #{id}")
    int deleteTeacherById(@Param("id") int id);

    @Select("SELECT * FROM `mydb`.`teacher` WHERE id = #{id}")
    List<Teacher> findTeacherById(@Param("id") int id);
}
